package com.example.designpattenexample.mixpatten.example1;

public class ICard {
    private String cardNo;
    private double steadyMoney = 0.0;
    private double freeMoney = 0.0;

    public ICard(String cardNo, double steadyMoney, double freeMoney) {
        this.cardNo = cardNo;
        this.steadyMoney = steadyMoney;
        this.freeMoney = freeMoney;
    }

    public void showCardInfo() {
        System.out.println("cardNo:" + this.cardNo + " steadyMoney=" + steadyMoney + " freeMoney=" + freeMoney);
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public double getSteadyMoney() {
        return steadyMoney;
    }

    public void setSteadyMoney(double steadyMoney) {
        this.steadyMoney = steadyMoney;
    }

    public double getFreeMoney() {
        return freeMoney;
    }

    public void setFreeMoney(double freeMoney) {
        this.freeMoney = freeMoney;
    }
}
